import '../../utils/sc/state_controller.dart';
import '../model/brand_detail_entity.dart';
import '../service/brand_detail_service.dart';

class BrandSc extends ModelSC<BrandDetailEntity>  {
  int? id;

  @override
  Future<BrandDetailEntity> loadData() async{
    if (id == null) {
      throw Exception("id不能为空");
    }
   return await BrandDetailService.queryBrandDetail(id!);
  }
}